using System;
using System.Reflection;
using Microsoft.Practices.Composite.Modularity;
using PrismNavigationFramework.MVVM;

namespace WidgetsModule
{
    public class InitModule : IModule
    {
        private readonly IViewRegistrationService _viewRegistrationService;

        public InitModule(IViewRegistrationService viewRegistrationService)
        {
            _viewRegistrationService = viewRegistrationService;
        }

        public void Initialize()
        {
            this._viewRegistrationService.RegisterViewsAndTheirViewModels();
        }
    }
}